package ac.beiwo.baas.admin.repository;

import ac.beiwo.baas.admin.entity.Clazz;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by Staryet on 15/6/5.
 */
public interface ClazzRepository extends MongoRepository<Clazz, String> {

    List<Clazz> findAll();

    long deleteByName(String name);

    Clazz findByName(String name);

}
